package com.shopping.service;

import com.shopping.pojo.Business;
import com.shopping.pojo.vo.BusinessInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessService {
    public List<BusinessInfo> selectBusinessByQuery(String businessName, String userName, int start, int limit);
    public int getBusinessNum(String businessName, String userName);
    public boolean checkBusinessIdAndPassword(String businessId,String password);
    public boolean updateBusinessInfo(Business business);
    public String getBusinessName(String businessId);
    public int getId(String businessId);
    public boolean checkBusinessName(String businessName);
    public BusinessInfo selectBusinessInfo(String businessId);
    public Business selectBusiness(String businessId);
    public boolean businessCancellation(String businessId);
    public boolean checkBusinessOwner(Integer userId);
    public boolean updateBusinessTransfer(Integer userId,String businessId);
    public boolean updateBusinessPass(String businessId,String password);
    public List<BusinessInfo> selectBusinessByBusinessName(String businessName);
    public boolean deleteBusiness(Integer id);
    public boolean updateBusinessStatusSuccess(Integer id);
    public boolean updateBusinessJoinBlackList(Integer id);
    public boolean updateBusinessRemoveBlackList(Integer id);
    public boolean checkBusinessInfo(String businessId,String name ,String businessPhone);
    public boolean insertBusiness(Business business);
    public boolean updateBusinessImage(String businessId,String businessImage);

}
